<?php


/**
 * Rooms class.
**/
class Rooms extends EMongoEmbeddedDocument {
  
  public $roomId;
  public $roomType;
  public $position;
  public $size;
  public $facilities;
  public $textures;
  public function getCollectionName() {
    return 'Rooms';
  }
  
        // // Add EEmbeddedArraysBehavior
    // public function behaviors()
    // {
        // return array(
            // 'embeddedArrays' => array(
                // 'class'=>'ext.YiiMongoDbSuite.extra.EEmbeddedArraysBehavior',
                // 'arrayPropertyName'=>'facilities',       // name of property, that will be used as an array
                // 'arrayDocClassName'=>'Facilities'    // class name of embedded documents in array
            // ),
        // );
    // }
    
  /**
   * This method have to be defined in every model, like with normal CActiveRecord
   */
  public static function model($className = __CLASS__) {
    return parent :: model($className);
  }
    
  
}